<h1 class="title">Iteration list</h1>

<table class="tabular">
 <tr class="header">
  <th>Name</th>
  <th></th>
 </tr> 
<% odd = 1 %>
<% for iteration in @iterations %>
 <tr <% if odd == 1 %>class="odd_row"<% odd = 0 %><% else %>class="even_row"<% odd = 1 %><% end %>>
   <td><%= link_to iteration.name, { :controller => "iteration", :action => "show", :id => iteration.iteration_id }  %></td>
   <td><%= link_to 'edit', { :controller => "iteration", :action => "edit", :id => iteration.iteration_id }  %></td>
 </tr> 
<% end %>
</table>
